package com.xzjt.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yuandong
 * @since 2021-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    private String menuCode;

    /**
     * 菜单名
     */
    private String menuName;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 菜单对应的url
     */
    private String url;

    /**
     * 菜单类型  1：目录 2：菜单
     */
    private String menuType;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 状态
     */
    private Integer state;

    /** 子菜单 */
    @TableField(exist = false)
    private List<SysMenu> children = new ArrayList<SysMenu>();


}
